﻿ 
<%@ Page Title="" Language="C#" MasterPageFile="~/VSFuncionario.Master" AutoEventWireup="true" CodeBehind="CursoCadastro.aspx.cs" Inherits="Presentation.cadastraCurso" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        #Button1
        {
            width: 67px;
        }
        .style1
        {
            width: 66px;
        }
    </style>
    <script language="javascript" type="text/javascript">

    </script>
</asp:Content>

  <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <table style="width:100%;">
            <tr>
                <td class="style1">
                    Nome:</td>
                <td>
                    <asp:TextBox ID="nome" runat="server"></asp:TextBox>
                </td>
  
            </tr>
            <tr>
                <td class="style1">
                    Duração:</td>
                <td>
                    <asp:TextBox ID="duracao" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Mensalidade:</td>
                <td>
                    <asp:TextBox ID="mensalidade" runat="server"></asp:TextBox>
                </td>
            </tr>
             <tr>
                <td class="style1">
                    Sobre o Curso:</td>
                <td>
                    <asp:TextBox ID="sobreCurso" runat="server" TextMode="MultiLine"></asp:TextBox>
                 </td>
            </tr>
                 <tr>
                <td class="style1">
                    Area:</td>
                <td>
                    <asp:DropDownList ID="DropDownList1" runat="server" 
                        DataSourceID="EntityDataSource1" DataTextField="Descricao" DataValueField="ID" 
                        onselectedindexchanged="DropDownList1_SelectedIndexChanged" AppendDataBoundItems="true">
                        <asp:ListItem Value="0" Text="selecione" Selected="True"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:EntityDataSource ID="EntityDataSource1" runat="server" 
                        ConnectionString="name=DBUCNEntities" DefaultContainerName="DBUCNEntities" 
                        EnableFlattening="False" EntitySetName="TBAreas" 
                        onselecting="EntityDataSource1_Selecting">
                    </asp:EntityDataSource>
                 </td>
            </tr>
              <tr>
                <td class="style1">
                    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" 
                        Text="Cadastrar" />
                    </td>
          
            </tr>

        </table>
  
</asp:Content>